package cn.itcast.feign.client;

import cn.itcast.feign.config.DefaultFeignConfiguration;
import cn.itcast.feign.pojo.Hydropower;
import cn.itcast.feign.pojo.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "hydropower-service", configuration = DefaultFeignConfiguration.class)
public interface HydropowerClient {
    @PostMapping("/hydropower/insert")
    public Result insert(@RequestBody Hydropower hydropower);
}
